package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqReplaceGoodsCostSubject;
import com.ruoyi.hqfinance.mapper.HqReplaceGoodsCostSubjectMapper;
import com.ruoyi.hqfinance.service.HqReplaceGoodsCostSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HqReplaceGoodsCostSubjectServiceImpl implements HqReplaceGoodsCostSubjectService {
    @Autowired
    private HqReplaceGoodsCostSubjectMapper hqReplaceGoodsCostSubjectMapper;
    @Override
    public List<HqReplaceGoodsCostSubject> selectAll() {
        return hqReplaceGoodsCostSubjectMapper.selectAll();
    }

    @Override
    public Boolean insert(HqReplaceGoodsCostSubject hqReplaceGoodsCostSubject) {
        return hqReplaceGoodsCostSubjectMapper.insert(hqReplaceGoodsCostSubject);
    }

    @Override
    public Boolean update(HqReplaceGoodsCostSubject hqReplaceGoodsCostSubject) {
        return hqReplaceGoodsCostSubjectMapper.update(hqReplaceGoodsCostSubject);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqReplaceGoodsCostSubjectMapper.deleteById(id);
    }
}
